package com.wangrui.utils;

import java.io.Serializable;
import java.util.List;

/*
 * Author:张海均
 * Description:分页信息类
 * Date:2020年6月30日
 */

public class Page<T> implements Serializable{
	
	private Integer start;//开始记录数
	private Integer pageSize;//页大小
	private String keyword;//查询关键字
	private List<T> list;//页面列表数据
	private Integer totalRecord;//总记录数
	private Integer pageIndex;//当前页
	
	public Integer getStart() {
		start = (pageIndex - 1) * pageSize;
		return start;
	}
	public void setStart(Integer start) {
		this.start = start;
	}
	public Integer getPageSize() {
		return pageSize;
	}
	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
	public String getKeyword() {
		return keyword;
	}
	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}
	public List<T> getList() {
		return list;
	}
	public void setList(List<T> list) {
		this.list = list;
	}
	public Integer getTotalRecord() {
		return totalRecord;
	}
	public void setTotalRecord(Integer totalRecord) {
		this.totalRecord = totalRecord;
	}
	public Integer getPageIndex() {
		return pageIndex;
	}
	public void setPageIndex(Integer pageIndex) {
		this.pageIndex = pageIndex;
	}
	
	
}
 